<?php 
$CI =& get_instance();
$CI->load->database();
$CI->load->library("front/header_lib");
$query_pages = $CI->db->get_where('bur_staticpages',array('staticpage_link'=>'design_directory'));
foreach($query_pages->result() as $row_vals)
{
    $title = $row_vals->staticpage_title;
	$metakey_page = $row_vals->staticpage_metakey;
    $metadesc_page = $row_vals->staticpage_metadesc;  
}
$CI->header_lib->display_header_element(array("script"=>array("jquery-1.4.2"),"page_title"=>$title,"metakey_page"=>$metakey_page,"metadesc_page"=>$metadesc_page));
$datas[''] = '' ;
$CI->header_lib->display_header($datas);
$data['login_info'] = 1 ;

$CI->load->model('Directory_company_model');
//echo $CI->session_user_id;
$count = $CI->Directory_company_model->get_view_count($CI->session_user_id);

$data['view_count'] = $count['view_count'];

$data['lead_count'] = $count['lead_count'];

$listing_active = $CI->Directory_company_model->get_listing_status($CI->session_user_id);
?>
<link rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url();?>xhtml/css/tia.css" />
<!--body content starts-->
<div id="container_wrapper">
	<div id="body_container">
    	<div class="left_part">
        	<?php echo $CI->header_lib->display_panel_left($data);?>
        </div>
    	
        <div class="page">
       		
                        <h2 class="border">
                    <?php 
                    if(!empty($company_detail['company'])){
                        echo $company_detail['company'];
                    }else{
                        echo "Company name not defined yet";
                    } 
                    ?></h2>
                    <p class="purple f15">Login Details</p>
                    <hr />
                    <?php if(!empty($notification)){ ?>
                    <div style="background-color:#CF118C; color:#FFF; font-size:14px; margin-bottom:5px; padding:5px;"><?php echo $notification ?></div>
                    <?php } ?>
                    <?php 
                    $attributes = array('class' => 'dirad', 'id' => 'myform');
                    echo form_open('directory/panel/login',$attributes);?>
                    <label>E-mail: <span>(required)</span></label><br>
                    <?php echo form_input('email',$email); ?>
                    <?php echo form_error('email','<p id="error_recaptcha" class="inform f12 error_message"><strong>Error:</strong>','</p>') ?>
                    
                    <br/>
                    <label>Password: <span>(existing password)</span></label><br>
                    <p class="f15"><strong><?php echo $real_pass ?></strong></p>
                    <hr>
                    <p class="f15 purple">Change Password:</p>
                    <label>Password: <span>(required)</span></label><br>
                    <?php echo form_password('password'); ?>
                    <?php echo form_error('password','<p id="error_recaptcha" class="inform f12 error_message"><strong>Error:</strong>','</p>') ?>
                    <br>
                    <label>Repeat Password: <span>(required)</span></label><br>
                    <?php echo form_password('re_password'); ?>
                    <?php echo form_error('re_password','<p id="error_recaptcha" class="inform f12 error_message"><strong>Error:</strong>','</p>') ?>
                    <hr>
                    <div class="">
                    <div class="">
                    <?php 
                    $form_submit = array(
                      'type'=>'submit',
                      'name'=>'submit',
                      'value'=>'submit',
                      'content'=>'Submit',
                    );
                    echo form_input($form_submit) ?>
                    
                    </div><!-- bright -->
                    <div class="clear"></div>s
                    </div><!-- box -->
                    <?php echo form_close(); ?><!-- dirad -->
                    
    	</div>

<?php $this->load->view(TEMPLATE_NAME.'/front/side_right'); ?>
     <div class="clear"></div> 
	</div>
</div>
<!--body content ends-->


<?php $this->load->view(TEMPLATE_NAME.'/front/footer'); ?>